import request from "@/utils/request";
import { serviceModule } from "@/api/serviceModule.js";
export default {
  // 列表
  query(data) {
    return request({
      baseURL: serviceModule.base,
      url: `/v1/vat/list`,
      method: "post",
      data,
    });
  },
  // 添加
  create(data) {
    return request({
      baseURL: serviceModule.base,
      url: `/v1/vat/create`,
      method: "post",
      data,
    });
  },
  // 编辑
  edit(data) {
    return request({
      baseURL: serviceModule.base,
      url: `/v1/vat/edit`,
      method: "post",
      data,
    });
  },
  // 详情
  detail(params) {
    return request({
      baseURL: serviceModule.base,
      url: `/v1/vat/detail`,
      method: "get",
      params,
    });
  },
  // 获取店铺信息
  shopInfo(params) {
    return request({
      baseURL: serviceModule.base,
      url: `/v1/vat/shop-info`,
      method: "get",
      params,
    });
  },
  // 删除
  delete(data) {
    return request({
      baseURL: serviceModule.base,
      url: `/v1/vat/delete`,
      method: "post",
      data,
    });
  },
  // 导入
  import(data) {
    return request({
      baseURL: serviceModule.base,
      url: `/v1/vat/import`,
      method: "post",
      data,
    });
  },
  // 关联店铺列表
  shopList(params) {
    return request({
      baseURL: serviceModule.base,
      url: `/v1/vat/shop-list`,
      method: "get",
      params,
    });
  },
};
